<form name="form_admin" method="POST" action="<?php echo formEditAction()?>" onsubmit="return CheckForm(this);">
<input type="hidden" name="id" value="<?php echo $id?>" />
<input type="hidden" name="oldUrl" value="<?php echo $location["cUrlString"] ?>" />

<div id="Tabs_Pages">
<div class="Page">
    <table width="100%" cellpadding="0" cellspacing="0" id="tbledit1">
    	 <tr>
            <td><b><font color="Red"><?php echo _URL?></font></b></td>
            <td>
    		<input class="normal3" type="text" name="URL"  id="URL" value="<?php echo $location["cUrlString"] ?>" />
    
    		<span style="color:#FF0000; padding-left:10" id="div_url"></span>
             </td>
        </tr>
    
    	<tr>
            <td width="15%"><span class="style1"><?php echo _NAME?></span></td>
            <td><input class="normal3" type="text" name="Name" id="Name"
    		value="<?php echo $location["cName"] ?>" /></td>
        </tr>
    
    
    	<tr>
    		<td><strong><?php echo _PARENTCATEGORY?></strong></td>
    		<td>
    			<select name="ParentId">
    				<?php echo ListLocationOption($location['iParentId'])?>
    			</select>
    		</td>
    	</tr>
    
    
    	<?php
    	if($hasTag)
    	{
    	?>
        <tr>
          <td><b><?php echo _TAGS?></b></td >
          <td><input type="text" id="Tag" name="Tag" class="normal3" value="<?php echo $tag["cTag"]?>"/></td>
        </tr>
    	<?php
    	}
    	?>
    
        <tr>
          <td><strong><?php echo _INTROIMAGE?></strong></td>
          <td>
                <?php echo inputFile('ImgIntro',$location["cImage"],'destination')?>
          </td>
        </tr>
    
        <?php
    	if(HAS_BANNER==true)
    	{
    	?>
        <tr>
            <td><b><?php echo _BANNERIMAGE?></b></td>
          <td>
                <?php echo inputFile('ImgBanner',$location["cBanner"],'banner')?>
    		</td>
        </tr>
        <?php
    	}
    	?>
        
        <?php
    	if(HAS_BACKGROUND==true)
    	{
    	?>
        <tr>
            <td><b>Background Image</b></td>
            <td>
                <?php echo inputFile('ImgBackground',$location["cBackground"],'background')?>
            </td>
        </tr>
        <?php
    	}
    	?>
    
        <tr>
            <td><b><?php echo _STATUS?></b></td>
            <td>
    			<select name="Status" id="Status">
    				<?php echo liststatus($location['iStatus'])?>
    			</select>
    	     </td>
        </tr>
    
        <tr>
            <td><b><?php echo _ORDER?></b></td>
            <td>
    			<?php echo getOrderInput()?>
    	     </td>
        </tr>
    
       	<tr>
            <td><b><?php echo _METATITLE?></b></td>
            <td><input class="normal3" style="width:90%" type="text" name="MetaTitle" id="MetaTitle"
    		value="<?php echo $location["cMetaTitle"] ?>" /></td>
        </tr>
    
        <tr>
            <td><b><?php echo _METAKEYWORDS?></b></td>
            <td><input class="normal3" style="width:90%" type="text" name="MetaKeywords" id="MetaKeywords"
    		 value="<?php echo $location["cMetaKeywords"] ?>"  /></td>
        </tr>
    
        <tr>
            <td valign="top" style="vertical-align:top"><b>Meta Description</b></td>
            <td style="padding-bottom:10"><textarea style="height:90px; width:90%;" class="noeditor"
    		 name="MetaDescription" ><?php echo $location["cMetaDescription"] ?></textarea></td>
    	</tr>
    
        <tr>
            <td valign="top" style="vertical-align:top"><b><?php echo Short_Description?></b></td>
            <td style="padding-bottom:10"><textarea style="height:120px; width:90%;"  id="Description"
    		 name="Description" ><?php echo $location["cDescription"] ?></textarea></td>
    	</tr>
    
        <tr>
            <td valign="top" style="vertical-align:top"><b><?php echo _DESCRIPTION?></b></td>
            <td style="padding-bottom:10"><textarea style="height:200px; width:90%;" id="Intro"
    		name="Intro"><?php echo $location["cIntro"] ?></textarea></td>
    	</tr>   
        
         <tr>
            <td valign="top" style="vertical-align:top"><b>Intro Tour</b></td>
            <td style="padding-bottom:10"><textarea style="height:200px; width:90%;" id="IntroTour"
    		name="IntroTour"><?php echo $location["cIntroTour"] ?></textarea></td>
    	</tr>   
        
        <tr>
            <td valign="top" style="vertical-align:top"><b>Intro Hotel</b></td>
            <td style="padding-bottom:10"><textarea style="height:200px; width:90%;" id="IntroHotel"
    		name="IntroHotel"><?php echo $location["cIntroHotel"] ?></textarea></td>
    	</tr>        
    </table>
    </div>
    
    <div class="Page">
     <table width="100%" cellpadding="0" cellspacing="0" id="tbledit2">
        <tr>
            <td valign="top"  width="15%"><b><?php echo Title?></b></td>
            <td style="padding-bottom:10">
            <input type="text" class="normal3" style="width:90%"  name="TitleWhere" value="<?php echo $where->title?>" />
            </td>
    	</tr>
        <tr>
            <td valign="top" style="vertical-align:top"><b><?php echo Where?></b></td>
            <td style="padding-bottom:10">
            <textarea style="height:100px; width:90%;" 
    		name="Where"><?php echo $where->msg ?></textarea></td>
    	</tr>
        <tr>
            <td valign="top" style="vertical-align:top"><b>Read More</b></td>
            <td style="padding-bottom:10">
            <textarea style="height:100px; width:90%;" 
            name="ReadMoreWhere"><?php echo $where->readmore ?></textarea></td>
    	</tr>
   	 </table>
    </div>
    
    <div class="Page">
     <table width="100%" cellpadding="0" cellspacing="0" id="tbledit3">
        <tr>
            <td valign="top"  width="15%"><b><?php echo Title?></b></td>
            <td style="padding-bottom:10">
            <input type="text" class="normal3" style="width:90%"  name="TitleWhen" value="<?php echo $when->title?>" />
            </td>
    	</tr>
        <tr>
            <td valign="top" style="vertical-align:top"><b><?php echo When?></b></td>
            <td style="padding-bottom:10"><textarea style="height:100px; width:90%;" 
    		name="When"><?php echo $when->msg ?></textarea></td>
    	</tr>
         <tr>
            <td valign="top" style="vertical-align:top"><b>Read More</b></td>
            <td style="padding-bottom:10">
            <textarea style="height:100px; width:90%;" 
            name="ReadMoreWhen"><?php echo $when->readmore ?></textarea></td>
    	</tr>
   	 </table>
    </div>
    
    <div class="Page">
     <table width="100%" cellpadding="0" cellspacing="0" id="tbledit4">       
        <tr>
            <td valign="top" style="vertical-align:top"><b><?php echo Highlights?></b></td>
            <td style="padding-bottom:10"><textarea style="height:100px; width:90%;" 
    		name="Highlights"><?php echo $Highlights->msg ?></textarea></td>
    	</tr>
         <tr>
            <td valign="top" style="vertical-align:top"><b>Read More</b></td>
            <td style="padding-bottom:10">
            <textarea style="height:100px; width:90%;" 
            name="ReadMoreHighlights"><?php echo $Highlights->readmore?></textarea></td>
    	</tr>
   	 </table>
    </div>
    
    <div class="Page">
     <table width="100%" cellpadding="0" cellspacing="0" id="tbledit5">       
        <tr>
            <td valign="top" style="vertical-align:top"><b>Quick Facts</b></td>
            <td style="padding-bottom:10"><textarea style="height:100px; width:90%;" 
    		name="QuickFacts"><?php echo $QuickFacts->msg ?></textarea></td>
    	</tr>
         <tr>
            <td valign="top" style="vertical-align:top"><b>Read More</b></td>
            <td style="padding-bottom:10">
            <textarea style="height:100px; width:90%;" 
            name="ReadMoreQuickFacts"><?php echo $QuickFacts->readmore?></textarea></td>
    	</tr>
   	 </table>
    </div>
    
    <div class="Page">
     <table width="100%" cellpadding="0" cellspacing="0" id="tbledit6"> 
        <tr>
            <td valign="top"  width="15%"><b><?php echo Title?></b></td>
            <td style="padding-bottom:10">
            <input type="text" name="TitlePracticalTips" value="<?php echo $PracticalTips->title?>" class="normal3" style="width:90%" />
            </td>
    	</tr>         
        <tr>
            <td valign="top" style="vertical-align:top"><b>Practical hints</b></td>
            <td style="padding-bottom:10"><textarea style="height:100px; width:90%;" 
    		name="PracticalTips"><?php echo $PracticalTips->msg ?></textarea></td>
    	</tr>
         <tr>
            <td valign="top" style="vertical-align:top"><b>Read More</b></td>
            <td style="padding-bottom:10">
            <textarea style="height:100px; width:90%;" 
            name="ReadMorePracticalTips"><?php echo $PracticalTips->readmore?></textarea></td>
    	</tr>
   	 </table>
    </div>
    
    <div class="Page">
     <table width="100%" cellpadding="0" cellspacing="0" id="tbledit7">  
         <tr>
            <td valign="top"  width="15%"><b><?php echo Title?></b></td>
            <td style="padding-bottom:10">
            <input type="text" name="TitleVisa" value="<?php echo $Visa->title?>" class="normal3" style="width:90%" />
            </td>
    	</tr>     
        <tr>
            <td valign="top" style="vertical-align:top"><b>Visa</b></td>
            <td style="padding-bottom:10"><textarea style="height:100px; width:90%;" 
    		name="Visa"><?php echo $Visa->msg ?></textarea></td>
    	</tr>
         <tr>
            <td valign="top" style="vertical-align:top"><b>Read More</b></td>
            <td style="padding-bottom:10">
            <textarea style="height:100px; width:90%;" 
            name="ReadMoreVisa"><?php echo $Visa->readmore?></textarea></td>
    	</tr>
   	 </table>
    </div>
    
    <div class="Page">
     <table width="100%" cellpadding="0" cellspacing="0" id="tbledit8">    
        <tr>
            <td valign="top"  width="15%"><b><?php echo Title?></b></td>
            <td style="padding-bottom:10">
            <input type="text" name="TitleTravelTips" value="<?php echo $TravelTips->title?>" class="normal3" style="width:90%" />
            </td>
    	</tr>     
        <tr>
            <td valign="top" style="vertical-align:top"><b>Travel tips</b></td>
            <td style="padding-bottom:10"><textarea style="height:100px; width:90%;" 
    		name="TravelTips"><?php echo $TravelTips->msg ?></textarea></td>
    	</tr>
         <tr>
            <td valign="top" style="vertical-align:top"><b>Read More</b></td>
            <td style="padding-bottom:10">
            <textarea style="height:100px; width:90%;" 
            name="ReadMoreTravelTips"><?php echo $TravelTips->readmore?></textarea></td>
    	</tr>
   	 </table>
    </div>
    
    <div class="Page">
     <table width="100%" cellpadding="0" cellspacing="0" id="tbledit9">      
        <tr>
            <td valign="top"  width="15%"><b><?php echo Title?></b></td>
            <td style="padding-bottom:10">
            <input type="text" name="TitleFAQs" value="<?php echo $FAQs->title?>" class="normal3" style="width:90%" />
            </td>
    	</tr>  
        <tr>
            <td valign="top" style="vertical-align:top"><b>FAQs</b></td>
            <td style="padding-bottom:10"><textarea style="height:100px; width:90%;" 
    		name="FAQs"><?php echo $FAQs->msg ?></textarea></td>
    	</tr>
         <tr>
            <td valign="top" style="vertical-align:top"><b>Read More</b></td>
            <td style="padding-bottom:10">
            <textarea style="height:100px; width:90%;" 
            name="ReadMoreFAQs"><?php echo $FAQs->readmore?></textarea></td>
    	</tr>
   	 </table>
    </div>
</div>
</form>
<script language="javascript" type="text/javascript">
function CheckForm(f)
{
	if(f.URL.value=="")
	{
		alert("please enter Url String");
		return false;
	}
	if(f.Name.value=="")
	{
		alert("please enter name");
		return false;
	}
	return AIM.submit(f,null,true);
}
try{
    for(i=1;i<10;i++)
    {
        (new TableDnD).buildrows("tbledit"+i);
    }
}catch(err){}
</script>